<?php
/**
 * Created by PhpStorm.
 * User: 技术员专用
 * Date: 2019/3/18
 * Time: 17:15
 */

namespace app\common\lib;


class Redis
{
    /**
     * 验证码 redis key前缀
     * @var string
     */
    public static $pre='sms_';
    public static $user_pre='user_';
    /**
     * 存储验证码 redis
     * @param $phone
     * @return string
     */
    public static function smsKey($phone){
        return self::$pre.$phone;
    }

    /**
     * 用户key
     * @param $phone
     * @return string
     */
    public static function userKey($phone){
        return self::$user_pre.$phone;
    }
}